<?php
class controller_deals
{
    public $_ = array();
	public $append_css = array();
	public $append_js = array();
    public $_layout = NULL;
    public $_miss_comp =NULL;
    
	public function __construct()
    {		
		$this->route = new handle_route();
		$this->request = new handle_request();
		$this->md_arr = new model_deals();
        $this->_layout =NULL;
        $this->_miss_comp = 'truyen bien';
	}
	
	public function index_action()
	{		
		$this->append_css = array( 
            'comp' 		=>	'deals',
			'mod'		=>	'deals',
			'layout' 	=>	'style',
			'link'		=>	'http://khithe.com/jquery.css'
		);
        $this->append_js = array( 
            'comp' 		=>	'deals',
			'mod'		=>	'deals',
			'layout' 	=>	'style',
			'link'		=>	'http://khithe.com/jquery.js'
		);
        //$this->_layout ='iframe';
        
		$r = $this->md_arr->mda_cat();
		return $r[2]['Define'].'_deals';
	}
	
}